<html>
<head>
	<title>Excersise 1</title>
	<!--<link href="styles/js-console.css" rel="stylesheet" /> -->
</head>
<body>
	<div id="js-console"></div>
	<!--<script src="scripts/js-console.js"></script> -->
	<script>

function Solve(args) {
//var args = new Array ("5");
var symbolStar = "*";
var symbolEmpty = ".";
var result = "";
var i, j;
var roadWidth = parseInt(args[0]);
for (i=0;i<roadWidth;i++)
{
	for(j=0;j<roadWidth;j++)
	{
		if (i==j)
		{
		result = result+symbolStar;
		}
		else
		{
		result = result+symbolEmpty;
		}
	}	
	result = result+"\r\n";	
}
for(i=roadWidth-2;i>-1;i--)
{
	for(j=0;j<roadWidth;j++)
	{
		if(i==j)
		{
		result = result+symbolStar;			
		}
				else
		{
		result = result+symbolEmpty;
		}
	}
	if(j!=(roadWidth-2))
	{
	result = result+"\r\n";	
	}
}
return result;

}
Solve();
	</script>
</body>
</html>
